package top.yuyufeng.mbuy.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import top.yuyufeng.mbuy.dto.UserDTO;

/**
 * @description:
 * @Author: 俞育峰
 * @Date: 2019/9/25 11:01
 */
@RestController
@RequestMapping(value = "test")
public class TestController {
    @RequestMapping(value = "aa")
    public String a(){
        return "ab";
    }

    @RequestMapping(value = "bb")
    public Integer b(){
        return 11;
    }

    @RequestMapping(value = "u")
    public UserDTO u(){
        UserDTO userDTO = new UserDTO();
        userDTO.setId(1);
        userDTO.setPhone("17681856198");
        userDTO.setUsername("俞育峰");
        return userDTO;
    }
}
